POV-Ray : Newsgroups : povray.general : Color add : Re: Color add Server Time
5 Aug 2024 02:24:25 EDT (-0400)
  Re: Color add  
From: Marc-Hendrik Bremer
Date: 3 Jan 2003 16:36:55
Message: <3e160277@news.povray.org>
"Rafal 'Raf256' Maj" <raf### [at] raf256com> schrieb im Newsbeitrag
news:Xns### [at] 204213191226...
> How can I make a texture with pigment of following components :
>   red = function { FA(x,y,z) }
> green = function { FB(x,y,z) }
>  blue = function { FC(x,y,z) }
> ?
You try to use keywords as functionnames here that won't work IMO. You
should always use a capital letter to avoid that.

Does
#declare Red= function { FA(x,y,z) }
#declare Green = function { FB(x,y,z) }
#declare  Blue = function { FC(x,y,z)

...

 pigment{ rgb <Red, Green, Blue>}

not work? Or do I miss something obvious?

Marc-Hendrik


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.